// ---------------------------------------------------------------------------
#ifndef Unit2H
#define Unit2H
#include <Classes.hpp>
#include <StdCtrls.hpp>
#include <System.Classes.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.StdCtrls.hpp>
#include <Vcl.Forms.hpp>
#include <stdlib.h>
class TForm3;
class TMyEdit : public TEdit
{
private:
	int col;
	int row;
	bool setUp;
	bool hint[10];



public:
	void setAllNums();

	bool checkRow(int row, int value1);
	bool checkCol(int col, int value1);
	bool checkQuad(int row, int col, int value1);
	bool getsetUp();
	void setsetUp(bool toggle);
	__fastcall TMyEdit(TComponent* Owner);
	void __fastcall MyMouseEnter(TObject *Sender);
	void setLocation(int col, int row);
	void __fastcall MyMouseDown(TObject *Sender, TMouseButton Button,
		TShiftState Shift, int X, int Y);
	void __fastcall MyMouseUp(TObject *Sender, TMouseButton Button,
		TShiftState Shift, int X, int Y);
	void __fastcall MyEditChange(TObject* Sender);
};

// ---------------------------------------------------------------------------
extern PACKAGE TMyEdit *MyEdit[9][9]; // 3x3 grid
// extern Package TMyEdit tells other modules that the vars will
// be defined later.

// ---------------------------------------------------------------------------
#endif
